package com.oig.sys.auth.service;

import com.oig.common.module.SysRequest;
import com.oig.sys.auth.dto.RoleDto;
import com.oig.sys.auth.vo.RoleVo;

import java.util.List;


/**
 * @author wuxl
 */
public interface ITbRoleService {

    RoleVo getRoleInfo(Integer roleId);

    RoleVo addRole(RoleDto roleDto);

    RoleVo updateRole(RoleDto roleDto);

    void delRole(Integer roleId);

    void addRoleSystem(Integer roleId, List<Integer> systemIdList);

    void delRoleSystem(Integer roleId, List<Integer> systemIdList);

    void addRoleResource(Integer roleId, List<Integer> resourceIdList);

    void delRoleResource(Integer roleId, List<Integer> resourceIdList);

    void addRolePermission(Integer roleId, List<Integer> permissionIdList);

    void delRolePermission(Integer roleId, List<Integer> permissionIdList);


    List<RoleVo> listAllRole(SysRequest<RoleDto> roleRequest);
}
